﻿using System.Windows;

using Odebrecht.WpfApplication.TarefaServiceReference;
using Odebrecht.WpfApplication.ViewModels;

namespace Odebrecht.WpfApplication
{
    public partial class MainWindow : Window
    {
        #region Constructors

        public MainWindow()
        {
            InitializeComponent();
            Loaded += MainWindow_Loaded;
        }

        #endregion Constructors

        #region Methods

        private void MainWindow_Loaded(object sender, RoutedEventArgs e)
        {
            var viewModel = tarefaView.DataContext as TarefaViewModel;
            viewModel.LoadListOfTarefa();
        }

        #endregion Methods
    }
}